<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/pForm.jsp" %>
<%@ include file="/WEB-INF/jsp/include/easyui-layui-upload.jsp" %>
<script src="/plug-in/jquery-easyui-1.5.1/plugins/jquery.choosebox.js"></script>
<title>保单管理编辑页面</title>
<script>
$(function(){
	fn.resetForm();
	var values = (fn.data.employees || '').split(",");
	$('#employeesName').combotree('setValues', values);
	
	fn.onBeforeSubmitForm = function(){
		var employees = $('#employeesName').combotree('getValues');
		$("input[name=employees]").val( employees.join(","));
	}
});
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/com.fs.jzzn.pojo.Policy/modify"   >
		 <!--类名属性及默认主键id-->
		 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Policy" />
		 <input type="hidden" name="id" value="" />
		 <input type="hidden" name="createrId" />
		<input type="hidden" name="employees" />
		 
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="policyNo" style="width:270px;" data-options="label:'保险单号:',required:true,prefix:'BX',timestamp:'yyMMddss',validType:['length[1,25]']" />
		  <input class="easyui-textbox easyui-validatebox" name="policyBrand" style="width:270px;" data-options="label:'保险品牌:',required:true" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="policyType" style="width:270px;" data-options="label:'保险类型:',required:true" />
		  <input class="easyui-textbox easyui-validatebox" name="recognizee" style="width:270px;" data-options="label:'被保人:',required:true" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		  	<input class="easyui-combotree easyui-validatebox" id="employeesName" style="width:270px;" data-options="label:'员工姓名:',multiple:true" 
		  		url="/console/employee/combotree?textField=empName&createrId=${SESSION_USER.user.id}&createrId_searchType=eq" />
		  	<input class="easyui-numberbox easyui-validatebox" name="money" style="width:270px;" data-options="label:'保额:',required:true,precision:2,min:0" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		  <input class="easyui-datebox easyui-validatebox" name="startTime" style="width:270px;" data-options="label:'开始时间:',required:true" />
		  <input class="easyui-datebox easyui-validatebox" name="endtTime" style="width:270px;" data-options="label:'截止时间:',required:true" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-layuiupload" name="attachment" style="width:540px;" data-options="label:'附件:',upload:{auto:false,height:150}" />
		 </div>
		</form>
	</div>
</body>
</html>